;;; init-ui.el --- ui config
;;; Commentary:
;;; Code:

;; title
(setq-default frame-title-format '("Tooooommy - " user-login-name "@" system-name " - %b"))

;; font 字体大小
(set-face-attribute 'default  nil :font "Source Code Pro Medium 14")

;; 个人信息
(setq user-full-name "Tooooommy Huang")
(setq user-mail-address "1520752231@qq.com")

;; 设置简便交互
(fset 'yes-or-no-p 'y-or-n-p)

;; bar-mode 隐藏导航
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)

;; frame 屏幕的状态栏显示异常
(setq-default
 window-resize-pixelwise t
 frame-resize-pixelwise t)

;; Suppress GUI features
(setq use-file-dialog nil)
(setq use-dialog-box nil)
(setq inhibit-startup-screen t)
(setq initial-major-mode 'fundamental-mode)

;; https://www.youtube.com/watch?v=NfjsLmya1PI
(setq initial-scratch-message ";; 不是你厉害了才开始， 而是你开始了才会很厉害!\n")

;; dashboard
;; (use-package dashboard
;;   :config
;;   (dashboard-setup-startup-hook)
;;   (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
;;   (setq dashboard-banner-logo-title "Welcome to Tooooommy's Emacs")
;;   (setq dashboard-center-content t)
;;   (setq dashboard-set-init-info t)
;;   ;; (setq dashboard-init-info "Life is fucking movie, but I'm not an actor!")
;;   ;; (setq dashboard-init-info "不是你厉害了才开始， 而是你开始了才会很厉害!")
;;   (setq dashboard-init-info "Not you strong to begin, but you will be very strong when you start!")
;;   (setq dashboard-items '((recents  . 5)
;;                           (bookmarks . 5)
;;                           (projects . 5)
;;                           (agenda . 5)
;;                           (registers . 5)))
;;   (setq dashboard-set-init-info t)
;;   (setq dashboard-footer-messages '("Life is fucking movie, but I'm not an actor!"))
;;   )

;; doom-themes 主题
(use-package doom-themes
  :defer t
  :init (load-theme 'doom-one t)
  :config
  (doom-themes-visual-bell-config)
  (doom-themes-org-config)
  (setq
   doom-themes-enable-bold t
   doom-themes-enable-italic t))

;; modeline 状态栏
;; (use-package simple-modeline
;;   :hook (after-init . simple-modeline-mode))

(use-package spaceline
  :config
  (require 'spaceline-config)
  (spaceline-spacemacs-theme))


(provide 'init-ui)
;;; init-ui.el ends here
